import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import Fillinfo from '@/components/Fillinfo'
import Addclass from '@/components/Addclass'
import Createclass from '@/components/Createclass'
import Select from '@/components/Select'
import Myclass from '@/components/Myclass'
import Studentslist from '@/components/Studentslist'
import Dynamic from '@/components/Dynamic'
import Linkstudentslist from '@/components/Linkstudentslist'
import Student from '@/components/Student'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      meta:{
        title: '导航1'
      },
      component: Home
    },
    {
      path: '/fillinfo',
      name: 'Fillinfo',
      meta:{
        title: '完善信息2'
      },
      component: Fillinfo
    },
    {
      path: '/addclass',
      name: 'Addclass',
      meta:{
        title: '创建班级'
      },
      component: Addclass
    },
    {
      path: '/createclass/',
      name: 'Createclass',
      meta:{
        title: '创建班级'
      },
      component: Createclass
    },
    {
      path: '/createclass/success',
      name: 'Createclass/success',
      meta:{
        title: '创建成功'
      },
      component: Createclass
    },
    {
      path: '/select/school',
      name: 'Select/school',
      meta:{
        title: '选择学校'
      },
      component: Select
    },
    {
      path: '/select/grade',
      name: 'Select/grade',
      meta:{
        title: '选择年级'
      },
      component: Select
    },
    {
      path: '/myclass',
      name: 'Myclass',
      meta:{
        title: '我的班级'
      },
      component: Myclass
    },
    {
      path: '/studentslist/:id',
      name: 'Studentslist',
      meta:{
        title: '学生列表'
      },
      component: Studentslist
    },
    {
      path: '/linkstudentslist/:id',
      name: 'Linkstudentslist',
      meta:{
        title: '学生列表'
      },
      component: Linkstudentslist
    },
    {
      path: '/student/:id',
      name: 'Student',
      meta:{
        title: '学情动态'
      },
      component: Student
    },
    {
      path: '/dynamic',
      name: 'Dynamic',
      meta:{
        title: '学情动态'
      },
      component: Dynamic
    }
  ]
})
